****USE DATA SET, VERSION 11-wp.

select if (eligible=1).

select if (year le 2003).

**MODEL 2.1.  FREEDOM HOUSE WITH ARH1 ERROR STRUCTURE.

Mixed dg02i with yearnum aid100g aid000g aid_2g rsaid1g rsaid0g ODA100g oda000g prf01ig fpp01g dif07g pol05g pol25 l203g L212g L221g  L220g L222Ig L225g L2999ag l223g 
/print=solution /fixed=l203g L212g L221g L220g L222Ig L225g L2999ag l223g yearnum yearnum*l203g yearnum*l212g yearnum*l221g yearnum*l220g yearnum*l222ig 
yearnum*l225g yearnum*l223g yearnum*l2999ag aid100g aid000g aid_2g rsaid1g rsaid0g ODA100g oda000g prf01ig fpp01g dif07g pol05g pol25 | sstype (3) 
/random intercept yearnum |subject (cc_2) covtype(VC) 
/repeated=year | subject (cc_2) covtype (arh1).

***MODEL 2.2 POLITY WITH AR1 ERROR STRUCTURE .
Mixed dg01i with yearnum aid100g aid000g aid_2g rsaid1g rsaid0g ODA100g oda000g prf01ig fpp01g dif07g pol05g pol25 l203g L212g L221g  L220g L222Ig L225g L2999ag l223g 
/print=solution /fixed=l203g L212g L221g L220g L222Ig L225g L2999ag l223g yearnum yearnum*l203g yearnum*l212g yearnum*l221g yearnum*l220g yearnum*l222ig 
yearnum*l225g yearnum*l223g yearnum*l2999ag aid100g aid000g aid_2g rsaid1g rsaid0g ODA100g oda000g prf01ig fpp01g dif07g pol05g pol25 | sstype (3) 
/random intercept yearnum |subject (cc_2) covtype(VC) 
/repeated=year | subject (cc_2) covtype (ar1).
